<script>
import TreeSelect from '$ui/components/my-form/src/common/TreeSelect'
import { treeDataTranslate } from '@/utils'

export default {
  extends: TreeSelect,
  data() {
    return {}
  },
  methods: {},
  computed: {
    optionsTree() {
      const {id, parentId} = this.keyMap
      return treeDataTranslate(this.options || [], id, parentId)
    }
  }
}
</script>
